package com.woniuxy.kaer.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.kaer.service.entity.ServiceOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 程诗洋
 * @since 2025年02月17日
 */
@Mapper
public interface ServiceOrderMapper extends BaseMapper<ServiceOrder> {
    Integer getTakeOrderNumByShopId(@Param("shopId") Integer shopId);

    BigDecimal getOrderSaleAmountByShopId(@Param("shopId") Integer shopId);

    Integer getMakeOrderNumByShopId(@Param("shopId") Integer shopId);

    Integer getTakeOrderNumByShopId90Days(@Param("shopId") Integer shopId);

    BigDecimal getOrderSaleAmountByShopId90Days(@Param("shopId") Integer shopId);
    Integer getMakeOrderNumByShopId90Days(@Param("shopId") Integer shopId);
}